home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / progut~1 / iostream.zoo / test / expected.out next >
Encoding:
Text File  |  1991-09-22  |  807 b   |  30 lines

  1. Hello, world via cout
  2. enter a char:c = "a"
  3. enter three integers (short, int, long):first  = 123 via dec =      123
  4. second = 4567 via form = 4567 = 010727 via cout.form = 4567 = 0x11d7
  5. third  = 89012 via hex = 15bb4
  6. enter a float then a double:first  = 123.456
  7. second = -0.012
  8. enter 5 characters separated with spaces:first  = 1
  9. rest   =  2 3 4 5
  10.  
  11. Making streams sout and sin...contents of file:
  12. Thisfilehasonelinetestingoutputstreams.
  13. creating string-based ostream...
  14. with contents:
  15. This is a string-based stream.
  16. With two lines.
  17. using it to create string-based istream...
  18. with contents:
  19. This is a string-based stream.
  20. With two lines.
  21.  
  22. Making filebuf streams fout and fin...contents of file:
  23. Thisfilehasonelinetestingoutputstreams.
  24. Final names & states:
  25. cin:          0
  26. cout:         0
  27. cerr:         0
  28.  
  29. end of test.
  30.